<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ALORK 20150428.01" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link rel="stylesheet" href="./public/my_style.css" />
<script type="text/javascript" src="./../js/mobile-common.js"></script>
<?php echo $this->smarty_insert_scripts(array('files'=>'./../js/jquery.js')); ?>

</head>
<body style="overflow-y:hidden">
<?php echo $this->fetch('library/user_head.lbi'); ?>
<div id="body">
	<?php if ($this->_var['orders']): ?>
	<div id="order_list">
	<?php $_from = $this->_var['orders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'order');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['order']):
?>
		<div class="order_list">
			<a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order']['order_id']; ?>"><div class="title">订单编号：<?php echo $this->_var['order']['order_sn']; ?>
			<div class="right"><?php echo $this->_var['order']['total_fee']; ?></div></div></a>
			<div class="msg">
				<div class="left">
			  	<a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order']['order_id']; ?>"><img src="./../<?php echo $this->_var['order']['son']['0']['goods_thumb']; ?>" alt="" /></a>
				</div>
				<div class="right">
				  <a href="user.php?act=order_detail&order_id=<?php echo $this->_var['order']['order_id']; ?>">
				  	<div class="name"><?php if ($this->_var['order']['son']['0']['goods_attr']): ?> (<?php echo $this->_var['order']['son']['0']['goods_attr']; ?>) <?php endif; ?><?php echo $this->_var['order']['son']['0']['goods_name']; ?></div>
				  </a>
				  <div class="add_time"><?php echo $this->_var['order']['order_time']; ?></div>
				  <div class="num">数量：<?php echo $this->_var['order']['son']['0']['count']; ?></div>
				  <?php if ($this->_var['order']['handler'] || $this->_var['order']['comment_fulfil'] || $this->_var['order']['order_status']): ?>
				  <div class="text">状态：<span style="color: #983538;"><?php echo $this->_var['order']['order_status']; ?></span></div>
				  <?php endif; ?>
				</div>
			</div>
			<?php if ($this->_var['order']['pay_status'] == 2): ?>
			<div class="pic"><a href="http://pan.baidu.com/share/init?shareid=1898491918&uk=89062392" style="margin:0px 15px; text-decoration: underline;">名家高清画作领取</a>提取码：2w46</div>
			<?php endif; ?>
			<div class="button_list">
			  <?php if ($this->_var['order']['Cancel']): ?>  <?php echo $this->_var['order']['Cancel']; ?><?php endif; ?>
			  <?php if ($this->_var['order']['comment']): ?><?php endif; ?>
			  <?php if ($this->_var['order']['pay_online']): ?><?php echo $this->_var['order']['pay_online']; ?><?php endif; ?>
			  <?php if ($this->_var['order']['handler']): ?><?php echo $this->_var['order']['handler']; ?><?php endif; ?>
			  <?php if ($this->_var['order']['sale']): ?> <?php echo $this->_var['order']['sale']; ?><?php endif; ?>
			  <a onclick="return_to_cart(<?php echo $this->_var['order']['order_id']; ?>)"> 加回购物车</a>
			  <?php if ($this->_var['order']['invoice_no']): ?>
			  <a href="http://q.sto.cn/track.aspx?wen=<?php echo $this->_var['order']['invoice_no']; ?>">查看物流</a>
			  <?php endif; ?>
		    </div>
		</div>
	<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	    <div class="page_list">
	        <div class="page_first"><a  <?php if ($this->_var['pager']['page'] == 1): ?> style="color: #b4b1b1"  <?php else: ?> href="<?php echo $this->_var['pager']['page_first']; ?>"<?php endif; ?> >首页</a></div>
	        <div class="page_prev"><a  <?php if ($this->_var['pager']['page'] == 1): ?> style="color: #b4b1b1"  <?php else: ?> href="<?php echo $this->_var['pager']['page_prev']; ?>" <?php endif; ?>>上一页</a></div>
	          <div class="page">
	          <div class="page_text"> <span><?php echo $this->_var['pager']['page']; ?>/<?php echo $this->_var['pager']['page_count']; ?></span> <i></i></div>
	          <select  class="page_num" onchange="JUMP($(this).val());">
				<?php $_from = $this->_var['pager']['page_number']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'page');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['page']):
?>
	            <option value ="<?php echo $this->_var['page']; ?>"<?php if ($this->_var['key'] == $this->_var['pager']['page']): ?> selected="selected"<?php endif; ?>>第<?php echo $this->_var['key']; ?>页</option>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	          </select>
	          </div>
	        <div class="page_next"><a <?php if ($this->_var['pager']['page'] == $this->_var['pager']['page_count']): ?> style="color: #b4b1b1"  <?php else: ?> href="<?php echo $this->_var['pager']['page_next']; ?>" <?php endif; ?>>下一页</a></div>
	        <div class="page_last"><a <?php if ($this->_var['pager']['page'] == $this->_var['pager']['page_count']): ?> style="color: #b4b1b1"  <?php else: ?> href="<?php echo $this->_var['pager']['page_last']; ?>" <?php endif; ?>>末页</a></div>
	    </div>
	        <script type="text/javascript">
	        <?php $_from = $this->_var['lang']['merge_order_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
	          var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
	        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	          var width= $("#order_list").width();
	  		width=width-232;
		  $(".page").width(width);
		      function JUMP(address){
		     self.location=address;

		    }
	        </script>
		</div>
	<?php else: ?>
	<div class="no_order">
	<img src="./images/mobile_no_order.png" alt="" />
	</div>
	<?php endif; ?>
</div>




</body>
</html>
